//
//  LocalTableCell.m
//  MiaoTu
//
//  Created by dllo on 16/9/10.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LocalTableCell.h"
#import "UIImageView+WebCache.h"
#import "LocalItem.h"

@interface LocalTableCell ()
@property (weak, nonatomic) IBOutlet UIImageView *backImage;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;

@end

@implementation LocalTableCell

- (void)setLocalItem:(LocalItem *)localItem {
    _localItem = localItem;
    [_backImage sd_setImageWithURL:[NSURL URLWithString:_localItem.Image] placeholderImage:[UIImage imageNamed:@"placeholderImage"]];
    _nameLabel.text = _localItem.Name;
    _countLabel.text = [NSString stringWithFormat:@"%ld人在此结伴 %zd家特惠酒店", (long)_localItem.YueyouCount, _localItem.ComResCount];    
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
